home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / nodeeditpalette.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-12  |  2.9 KB  |  140 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef NODEPALETTE_H
  8. #define NODEPALETTE_H
  9.  
  10. #include <QToolTip>
  11. #include <QCheckBox>
  12. #include <QLabel>
  13. #include <QPushButton>
  14. #include <QSpinBox>
  15. #include <QToolButton>
  16. #include <QGroupBox>
  17. #include <QRadioButton>
  18. #include <QGridLayout>
  19. #include <QVBoxLayout>
  20. #include <QCloseEvent>
  21.  
  22. class QEvent;
  23.  
  24. #include "scribusapi.h"
  25. #include "scrpalettebase.h"
  26. #include "scrspinbox.h"
  27.  
  28. class ScribusDoc;
  29. class ScribusView;
  30.  
  31. class SCRIBUS_API NodePalette : public ScrPaletteBase
  32. {
  33.     Q_OBJECT
  34.  
  35. public:
  36.     NodePalette( QWidget* parent);
  37.     ~NodePalette() {};
  38.     
  39.     virtual void changeEvent(QEvent *e);
  40.  
  41.     QToolButton* MoveNode;
  42.     QToolButton* MoveControl;
  43.     QToolButton* AddNode;
  44.     QToolButton* DeleteNode;
  45.     QToolButton* AsymMove;
  46.     QToolButton* SymMove;
  47.     QToolButton* ResNode;
  48.     QToolButton* Res1Node;
  49.     QToolButton* PolySplit;
  50.     QToolButton* BezierClose;
  51.     QToolButton* PolyMirrorH;
  52.     QToolButton* PolyMirrorV;
  53.     QToolButton* PolyShearL;
  54.     QToolButton* PolyShearR;
  55.     QToolButton* PolyShearU;
  56.     QToolButton* PolyShearD;
  57.     QToolButton* RotateCCW;
  58.     QToolButton* RotateCW;
  59.     QToolButton* Expand;
  60.     QToolButton* Shrink;
  61.     QToolButton* Enlarge;
  62.     QToolButton* Reduce;
  63.     QGroupBox* AbsMode;
  64.     QRadioButton* absToCanvas;
  65.     QRadioButton* absToPage;
  66.     QCheckBox* EditCont;
  67.     QLabel* TextLabel1;
  68.     ScrSpinBox* YSpin;
  69.     QLabel* TextLabel2;
  70.     ScrSpinBox* XSpin;
  71.     QSpinBox *RotVal;
  72.     QSpinBox *scalePercentage;
  73.     ScrSpinBox *scaleDistance;
  74.     QPushButton* ResetCont;
  75.     QPushButton* ResetContClip;
  76.     QPushButton* ResetShape2Clip;
  77.     QPushButton* editEditButton;
  78.     void setDoc(ScribusDoc *dc, ScribusView *vi);
  79.     ScribusDoc* currentDocument() const;
  80.     ScribusDoc *doc;
  81.     ScribusView *view;
  82.  
  83. private slots:
  84.     void closeEvent(QCloseEvent *);
  85.     void MoveK();
  86.     void AddN();
  87.     void DelN();
  88.     void MovePoint();
  89.     void SetSym();
  90.     void SetAsym();
  91.     void ResetControl();
  92.     void Reset1Control();
  93.     void ResetContour();
  94.     void ResetContourToImageClip();
  95.     void ResetShapeToImageClip();
  96.     void CloseBezier();
  97.     void SplitPoly();
  98.     void MirrorH();
  99.     void MirrorV();
  100.     void doRotCCW();
  101.     void doRotCW();
  102.     void doShrink();
  103.     void doExpand();
  104.     void doReduce();
  105.     void doEnlarge();
  106.     void ShearR();
  107.     void ShearL();
  108.     void ShearU();
  109.     void ShearD();
  110.     void ToggleAbsMode();
  111.     void ToggleConMode();
  112.  
  113. public slots:
  114.     void MoveN();
  115.     void SetXY(double x, double y);
  116.     void HaveNode(bool have, bool mov);
  117.     void IsOpen();
  118.     void PolyStatus(int typ, uint size);
  119.     void languageChange();
  120.     void unitChange();
  121.     void EndEdit(); // allow remote close
  122.  
  123. protected:
  124.     void connectSignals();
  125.     void disconnectSignals();
  126.     QVBoxLayout *vboxLayout;
  127.     QVBoxLayout *vboxLayout1;
  128.     QGridLayout *gridLayout;
  129.     QGridLayout *gridLayout1;
  130.     QGridLayout *gridLayout2;
  131.     
  132.     double unitRatio;
  133.     
  134. signals:
  135.     void Schliessen();
  136.     void DocChanged();
  137. };
  138.  
  139. #endif // NODEPALETTE_H
  140.